<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>我的主页</title>
    <meta name="keywords" content="课程学习问答系统">
    <meta name="description" content="课程学习问答系统">
    <script src="../static/js/jquery/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="../static/layui/layui.js" type="text/javascript"></script>
    <script src="../static/js/index/index.js" type="text/javascript"></script>
    <script src="../static/js/index/freezeheader.js" type="text/javascript"></script>
    <script src="../static/layui/lay/modules/layer.js" type="text/javascript"></script>
    <link rel="stylesheet" href="../static/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="../static/layui/css/modules/layer/default/layer.css"/>
    <link rel="stylesheet" href="../static/css/global.css"/>

    <!--
    -->
</head>
<body>
<%@ include file="header.jsp" %>


<div class="layui-container container" style=" padding-top:50px;">
    <div class="fly-home">
        <img src="https://unsplash.it/200/200?image=1005" alt="{{info.username}}">

        <h1>
           ${user.teacherName} (老师)
            <i class="iconfont icon-nan"></i>
            <!-- <i class="iconfont icon-nv"></i> -->

            <!-- <span style="color:#c00;">（超级码农）</span>
            <span style="color:#5FB878;">（活雷锋）</span>
            <span>（该号已被封）</span> -->
        </h1>


        <p class="fly-home-sign">（人生仿若一场修行）</p>
    </div>

    <div class="main fly-home-main" style="border:0px; border-style:solid">
        <div class="layui-inline fly-home-jie">
            <div class="fly-panel">
                <h3 class="fly-panel-title">${user.teacherName} 最近待回答的问题</h3>
                <ul class="jie-row">

                    <c:forEach items="${questionsIsNotAnswer}" var="question">
                        <li>
                            <span class="fly-jing">精</span>
                            <%--点击链接去回答--%>
                            <a href="/insert/${question.questionId}">--问题${question.questionId}:${question.questionText}</a>
                        </li>
                    </c:forEach>

                </ul>
                <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发表任何求解</i></div> -->
            </div>
        </div>
		<hr class="layui-bg-green" style="height:2px;">
        <div class="layui-inline fly-home-da">
            <div class="fly-panel">
                <h3 class="fly-panel-title">${user.teacherName} 最近的评论</h3>
                <ul class="home-jieda">
                    <c:forEach items="${comments}" var="comment">
                        <li>
                            <p>
                                <i><fmt:formatDate value="${comment.commentTime}"
                                                   pattern="yyyy-MM-dd HH:mm:ss"/></i>---
                                <span> 在问题
                                       ><a href="questionOne/${comment.questionId}"
                                           class="jie-title"  style="color: #1E9FFF">${comment.questionId}</a>中评论：</span>
                            </p>
                            <div class="home-dacontent">
                                    ${comment.commentContent}

                            </div>
                        </li>
                    </c:forEach>
                </ul>
                <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div> -->
            </div>
        </div>
        <hr class="layui-bg-green" style="height:2px;">
        <div class="layui-inline fly-home-da">
            <div class="fly-panel">
                <h3 class="fly-panel-title">${user.teacherName} 最近的回答</h3>
                <ul class="home-jieda">
                    <c:forEach items="${answers1}" var="answer">
                        <li>
                            <p>
                                <i><fmt:formatDate value="${answer.answerTime}"
                                                   pattern="yyyy-MM-dd HH:mm:ss"/></i>---
                                <span> 在问题
                                       ><a href="questionOne/${answer.answerQuestionId}"
                                           class="jie-title"  style="color: #1E9FFF">${answer.answerQuestionId}</a>中回答：</span>
                            </p>
                            <div class="home-dacontent">
                                    ${answer.answerText}

                            </div>
                        </li>
                    </c:forEach>
                </ul>
                <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div> -->
            </div>
        </div>
    </div>

</div>
<!--分页
<div id="page"></div>
-->
<%@ include file="footer.jsp" %>

</body>
</html>
